https://github.com/embree/embree-renderer/blob/60bd301d3ff774ef64f94a17fd9ce62d8f6524de/devices/renderer/regression.cpp#L131-L152
